{extend name="layout"/}

{block name="header"}   
<li class="am-btn"><i class="am-icon-file-o am-icon-fw"></i> 使用协议</li>
<li class="am-btn active"><i class="am-icon-circle-o-notch am-icon-fw"></i>  环境检测</li>
<li class="am-btn"><i class="am-icon-database am-icon-fw"></i> 创建数据库</li>
<li class="am-btn"><i class="am-icon-check am-icon-fw"></i> 安装完成</li>
{/block}

{block name="body"}
<table class="am-table am-table-bordered am-table-radius">

    <thead>
        <tr>
            <th>环境项目</th>
            <th>所需配置</th>
            <th>当前配置</th>
        </tr>
    </thead>
    <tbody>
        {volist name="env" id="item"}
        <tr>
            <td>{$item[0]}</td>
            <td>{$item[1]}</td>
            <td class="{$item[4]}">{$item[3]}</td>       
        </tr>
        {/volist}
    </tbody>
</table>
<table class="am-table am-table-bordered am-table-radius">
    <thead>
        <tr>
            <th>PHP支持</th>
            <th>类型</th>
            <th>检查结果</th>
        </tr>
    </thead>
    <tbody>
        {volist name="func" id="item"}
        <tr>
            <td>{$item[0]}</td>
            <td>{$item[3]}</td>
            <td class="{$item[2]}">{$item[1]}</td>
        </tr>
        {/volist}
    </tbody>
</table>
<present name="dirfile">
    <table class="am-table am-table-bordered am-table-radius">
        <thead>
            <tr>
                <th>目录/文件</th>
                <th>所需状态</th>
                <th>当前状态</th>
            </tr>
        </thead>
        <tbody>
            {volist name="dirfile" id="item"}
            <tr>
                <td>{$item[3]}</td>
                <td class="success">可写</td>
                <td class="{$item[2]}">{$item[1]}</td>   
            </tr>
            {/volist}
        </tbody>
    </table>
</present>

<div class="am-fr">
    <a class="am-btn am-btn-success am-btn-large" href="{$baseUrl}index.html">上一步</a>
    <a class="am-btn am-btn-primary am-btn-large" href="{$baseUrl}step2.html">下一步</a>
</div>
{/block}